﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ConnectorInfo.cs" company="dimamartovoi">
//   Apache License
//   Version 2.0, January 2004
//   http://www.apache.org/licenses
// </copyright>
// <summary>
//   The connector info.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace ActorModel.Infrastructure
{
    /// <summary>
    /// The connector info.
    /// </summary>
    /// <typeparam name="TState">
    /// </typeparam>
    public sealed class ConnectorInfo<TState>
    {
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="ConnectorInfo{TState}"/> class.
        /// </summary>
        /// <param name="state">
        /// The state.
        /// </param>
        /// <param name="targetConnectorId">
        /// The target connector id.
        /// </param>
        public ConnectorInfo(TState state, int targetConnectorId)
        {
            this.TargetConnectorId = targetConnectorId;
            this.State = state;
        }

        /// <summary>
        ///     Initializes a new instance of the <see cref="ConnectorInfo{TState}" /> class.
        /// </summary>
        public ConnectorInfo()
        {
        }

        #endregion

        #region Public Properties

        /// <summary>
        ///     Gets the state.
        /// </summary>
        public TState State { get; set; }

        /// <summary>
        ///     Gets the target connector id.
        /// </summary>
        public int TargetConnectorId { get; set; }

        #endregion
    }
}